package com.fix.config;

import com.fix.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author weizhongli
 * @Date 2020/4/24
 * @Version v1.0
 * @Description
 **/
@Configuration
public class UserConfig {

    @Bean
    public User user(){
        User user = new User();
        user.setAge(22);
        user.setName("李四");
        return user;
    }
}
